package cn.huobi.org.service.impl;

import cn.huobi.basic.service.impl.BaseServiceImpl;
import cn.huobi.org.domain.Detail;
import cn.huobi.org.domain.Type;
import cn.huobi.org.mapper.DetailMapper;
import cn.huobi.org.service.DetailService;
import cn.huobi.org.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(readOnly = true, propagation = Propagation.SUPPORTS)
public class DetailServiceImpl extends BaseServiceImpl<Detail> implements DetailService {

    @Autowired
    private DetailMapper detailMapper;

    @Override
    public List<Detail> findByTypesId(Long typesId) {
        return detailMapper.findByTypesId(typesId);
    }
}
